package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.tHotelSellerMapper;
import com.zking.ssm.NH.model.tHotelSeller;
import com.zking.ssm.NH.service.IThotelSellerService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author NH
 * @Date 2021/1/20/0020 21:39
 */

@Service
public class ThotelSellerServiceImpl implements IThotelSellerService {

    @Autowired
    private tHotelSellerMapper tHotelSellerMapper;

    @Override
    public int insert(tHotelSeller record) {
        return tHotelSellerMapper.insert(record);
    }

    @Override
    public int insertSelective(tHotelSeller record) {
        return tHotelSellerMapper.insertSelective(record);
    }

    @Override
    public List<tHotelSeller> listSeller(tHotelSeller tHotelSellerF, PageBean pageBean) {
        List<tHotelSeller> hotelSellerList = tHotelSellerMapper.listSeller(tHotelSellerF);
        return hotelSellerList;

    }

    @Override
    public int updateByPrimaryKeySelective(tHotelSeller record) {
        return tHotelSellerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deletepiliang(tHotelSeller record) {
        return tHotelSellerMapper.deletepiliang(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tHotelSellerMapper.deleteByPrimaryKey(id);
    }
}
